<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>欢迎来到我的家乡</title>
  <!-- 添加轮播图的样式和脚本 -->
  <link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css">
</head>
<body>
  <header>
    <h1>我的家乡</h1>
  </header>
  
  <main>
    <div class="swiper-container">
      <div class="swiper-wrapper">
        <div class="swiper-slide">
          <img src="image1.jpg" alt="家乡美景1">
          <a href="./家乡风土人情.html">人情</a>
        </div>
        <div class="swiper-slide">
          <img src="image2.jpg" alt="家乡美景2">
          <a href="./家乡历史.html">家乡历史</a>
        </div>
        <div class="swiper-slide">
          <img src="image3.jpg" alt="家乡美景3">
        </div>
      </div>
      <!-- 如果需要导航按钮和分页器，可以添加以下代码 -->
      <div class="swiper-button-next"></div>
      <div class="swiper-button-prev"></div>
      <div class="swiper-pagination"></div>
    </div>
  </main>

  <!-- 添加轮播图的脚本 -->
  <script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
  <script>
    var swiper = new Swiper('.swiper-container', {
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },
      pagination: {
        el: '.swiper-pagination',
        clickable: true,
      },
    });
  </script>
</body>
</html>
